<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/component/commonTagLib.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <title>${compType==1?"生产":"配送"}<spring:message code="message.list.compinfoStdMergelist"/><spring:message code="message.listForm.zhuCeXinXi"/><spring:message code="message.jqGrid.cz.audit"/></title>
    <%@ include file="/WEB-INF/component/commonCSS.jsp" %> 
    <style type="text/css">
    	span.required {
    		color: red;
    		margin-right: 6px;
    	}
    	.box-body {
    		margin-top:0px;
    	}
    	.text-left{
    	    color:#949494;
    	}
    </style>
</head>
<body class="skin-blue sidebar-mini fixed skin-blue-light-frame">
    <section class="content-header">
        <h1>${compType==1?"生产":"配送"}<spring:message code="message.list.compinfoStdMergelist"/><spring:message code="message.listForm.zhuCeXinXi"/><spring:message code="message.jqGrid.cz.audit"/></h1>
        <ol class="breadcrumb">
            <li><a href="${ctx}/home.jsp"><i class="fa fa-home"></i><spring:message code="message.lable.first"/></a></li>
            <li class="active"><a href="#"><spring:message code="message.listForm.zhuCeShenHe"/></a></li>
            <li class="active"><a href="#">${compType==1?"生产":"配送"}<spring:message code="message.list.compinfoStdMergelist"/><spring:message code="message.listForm.zhuCeXinXi"/><spring:message code="message.jqGrid.cz.audit"/></a></li>
        </ol>
    </section>
    <section class="content">
         <div class=" box box-success ">
           <form id="form" class="form-horizontal" action="saveAuditComp.html" method="post">
            	<input type="hidden" name="compId" value="${compInfo.compId}" />
            	<input type="hidden" name="compType" value="${compInfo.compType}" />
            	<input type="hidden" name="compClassify" value="0" />
                <div class="box-header with-border">
                <h3 class="box-title"><spring:message code="message.listForm.qiYeXinXi"/></h3>
                </div>
                <div class="box-body">
                    <div class="form-group form-group-xs">
                        <label for="compCode" class="col-sm-2 text-right"><spring:message code="message.listForm.qiYeBianMa"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                           <input id="compCode" name="compCode" value=" <c:out value="${compInfo.compCode}"></c:out>" placeholder="<spring:message code="message.listForm.qiYeBianMa"/>" type="hidden" maxlength="50"> <c:out value="${compInfo.compCode}"></c:out>
                        </div>
                        <label for="compName" class="col-sm-3 text-right"><spring:message code="message.listForm.qiYeMingCheng"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                           <input class="form-control" id="compName" name="compName" value="<c:out value="${compInfo.compName}"></c:out>" placeholder="<spring:message code="message.listForm.qiYeMingCheng"/>" type="hidden" maxlength="100"><c:out value="${compInfo.compName}"></c:out>
                        </div>
                    </div>
                    <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label for="compShortName" class="col-sm-2 text-right"><spring:message code="message.listForm.qiYeJianCheng"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                             <input class="form-control" id="compShortName" name="compShortName" value="<c:out value="${compInfo.compShortName}"></c:out>" placeholder="<spring:message code="message.listForm.qiYeJianCheng"/>" type="hidden" maxlength="100"><c:out value="${compInfo.compShortName}"></c:out>
                        </div>
                        <label for="orgCode" class="col-sm-3 text-right"><spring:message code="message.listForm.zuZhiJiGouDaiMa"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                             <input class="form-control" id="orgCode" name="orgCode" value="<c:out value="${compInfo.orgCode}" ></c:out>" placeholder="<spring:message code="message.listForm.zuZhiJiGouDaiMa"/>" type="hidden" maxlength="20"><c:out value="${compInfo.orgCode}" ></c:out>
                        </div>
                    </div>
                    <div class="line"></div>
                    <div class="form-group form-group-xs">
                    	<label for="compNameEng" class="col-sm-2 text-right"><spring:message code="message.listForm.qiYeMingChengEglish"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                           <input class="form-control" id="compNameEng" name="compNameEng" value="<c:out value="${compInfo.compNameEng}" ></c:out>" placeholder="<spring:message code="message.listForm.qiYeMingChengEglish"/>" type="hidden" maxlength="256"><c:out value="${compInfo.compNameEng}" ></c:out>
                        </div>
                        <label for="compGroupName" class="col-sm-3 text-right"><spring:message code="message.listForm.suoShuJiTuan"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                           <input type="hidden" id="compGroupName" name="compGroupName.compGroupId" value="<c:out value="${ compInfo.compGroupName.compGroupId  }"></c:out>"> <c:out value="${ compInfo.compGroupName.compGroupName  }"></c:out>
                        </div>
                    </div>
                    <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label for="compRegId" class="col-sm-2 text-right"><spring:message code="message.listForm.qiYeZhuCeLeiXing"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                        	<input class=" form-control" type="hidden" id="compRegId" value="<c:out value="${fatherCompRegType.compRegId}"></c:out>" style="width:48%;display:inline-block;"><c:out value="${fatherCompRegType.compRegName}"></c:out>
                            <input class=" form-control" type="hidden" name="compReg.compRegId" id="compRegId2" style="width:48%;display:inline-block;" value="<c:out value="${compInfo.compReg.compRegId}"></c:out>"><c:out value="${compInfo.compReg.compRegName}"></c:out>
                        </div>
                        <label for="compPhone" class="col-sm-3 text-right"><spring:message code="message.listForm.jiGouDianHua"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="compPhone" name="compPhone" value="<c:out value="${compInfo.compPhone}"></c:out>" placeholder="<spring:message code="message.listForm.jiGouDianHua"/>" type="hidden" maxlength="20"><c:out value="${compInfo.compPhone}"></c:out>
                        </div>
                    </div>
                    <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label for="regCap" class="col-sm-2 text-right"><spring:message code="message.listForm.zhuCheZiBenDanWei"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="regCap" name="regCap" value="<c:out value="${compInfo.regCap}"></c:out>" placeholder="注册资本" type="hidden" maxlength="20"><c:out value="${compInfo.regCap}"></c:out>
                        </div>
                    </div>
                    <div class="line"></div>
                     <div class="form-group form-group-xs">
                        <label for="bizScope" class="col-sm-2 text-right"><spring:message code="message.listForm.JingYingFanWei"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-9 text-left">
                            <input class="form-control" id="bizScope" name="bizScope" value="<c:out value="${compInfo.bizScope}"></c:out>" placeholder="<spring:message code="message.listForm.JingYingFanWei"/>" type="hidden" maxlength="11"><c:out value="${compInfo.bizScope}"></c:out>
                        </div>
                    </div>
                    <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label for="area" class="col-sm-2 text-right"><spring:message code="message.listForm.zhuCe"/><spring:message code="message.listForm.diQu"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-9 text-left">
                            <input id="area1" type="hidden" value="<c:out value="${ compInfo.area.father.father.areaid  }"></c:out>" class="form-control" style="width:31%;display:inline-block;">
                            <input id="area2" type="hidden" value="<c:out value="${ compInfo.area.father.areaid  }"></c:out>" class="form-control" style="width:31%;display:inline-block;">
                            <input id="area3" type="hidden" name="area.areaid" value="<c:out value="${ compInfo.area.areaid  }"></c:out>" class="form-control" style="width:31%;display:inline-block;"><c:out value="${ compInfo.area.arfullname  }"></c:out>
                        </div>
                    </div>
                    <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label for="bizLiceNo" class="col-sm-2 text-right"><spring:message code="message.listForm.yingYeZhiZhaoHao"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="bizLiceNo" name="bizLiceNo" value="<c:out value="${compInfo.bizLiceNo}"></c:out>" placeholder="<spring:message code="message.listForm.yingYeZhiZhaoHao"/>" type="hidden" maxlength="128"><c:out value="${compInfo.bizLiceNo}"></c:out>
                        </div>
                        <label for="bizLiceStartDate" class="col-sm-3 text-right"><spring:message code="message.listForm.yingYeZhiZhaoYouXiaoQi"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                         <input class="form-control" type="hidden" readonly="readonly" id="bizLiceStartDate"  name="bizLiceStartDate"  value="<c:out value="${compInfo.bizLiceStartDateStr}"></c:out>" placeholder="<spring:message code="message.listForm.yingYeZhiZhaoStart"/>" 
                onFocus="var endDate=$dp.$('bizLiceEndDate');WdatePicker({maxDate:'#F{$dp.$D(\'bizLiceEndDate\')}'})" ><c:out value="${compInfo.bizLiceStartDateStr}"></c:out> <spring:message code="message.listForm.zhi"/> <c:out value="${compInfo.bizLiceEndDateStr}"></c:out>
                        </div>
                        <input class="form-control" type="hidden" readonly="readonly" id="bizLiceEndDate"  name="bizLiceEndDate" value="<c:out value="${compInfo.bizLiceEndDateStr}"></c:out>" placeholder="<spring:message code="message.listForm.yingYeZhiZhaoEnd"/>"   
             onFocus="WdatePicker({minDate:'#F{$dp.$D(\'bizLiceStartDate\')}'})"  >
                    </div>
                    <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label for="indusCode" class="col-sm-2 text-right"><spring:message code="message.listForm.shengChanJingYingXuKeZhengHao"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="indusCode" name="indusCode" value="<c:out value="${compInfo.indusCode}"></c:out>" placeholder="<spring:message code="message.listForm.shengChanJingYingXuKeZhengHao"/>" type="hidden" maxlength="128"><c:out value="${compInfo.indusCode}"></c:out>
                        </div>
                        <label for="indusCodeStartDate" class="col-sm-3 text-right"><spring:message code="message.listForm.shengChanJingYingXuKeZhengYouXiaoQi"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                        <input class="form-control" type="hidden" readonly="readonly" id="indusCodeStartDate"  name="indusCodeStartDate"  value="<c:out value="${compInfo.indusCodeStartDateStr}"></c:out>" placeholder="<spring:message code="message.listForm.XuKeZheng"/><spring:message code="message.listForm.youXiaoQiStart"/>" 
                onFocus="var endDate=$dp.$('indusCodeEndDate');WdatePicker({maxDate:'#F{$dp.$D(\'indusCodeEndDate\')}'})" ><c:out value="${compInfo.indusCodeStartDateStr}"></c:out> <spring:message code="message.listForm.zhi"/> <c:out value="${compInfo.indusCodeEndDateStr}"></c:out>
                        </div>
                    </div>
                         <input class="form-control" type="hidden" readonly="readonly" id="indusCodeEndDate"  name="indusCodeEndDate" value="<c:out value="${compInfo.indusCodeEndDateStr}"></c:out>" placeholder="<spring:message code="message.listForm.XuKeZheng"/><spring:message code="message.listForm.youXiaoQiEnd"/>"   
             onFocus="WdatePicker({minDate:'#F{$dp.$D(\'indusCodeStartDate\')}'})"  >
             <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label for="compAddress" class="col-sm-2 text-right"><spring:message code="message.list.compinfoStdMergelist"/><spring:message code="message.listForm.diZhi"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-9 text-left">
                            <input class="form-control" type="hidden" id="compAddress" name="compAddress" value="<c:out value="${compInfo.compAddress}"></c:out>" placeholder="<spring:message code="message.list.compinfoStdMergelist"/><spring:message code="message.listForm.diZhi"/>" maxlength="512"><c:out value="${compInfo.compAddress}"></c:out>
                        </div>
                    </div>
                    <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label for="compProfile" class="col-sm-2 text-right"><spring:message code="message.list.compinfoStdMergelist"/><spring:message code="message.listForm.jianJie"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-9 text-left">
                            <input class="form-control" type="hidden" id="compProfile" name="compProfile" placeholder="<spring:message code="message.listForm.jianJie"/>" maxlength="1000"><c:out value="${compInfo.compProfile}"></c:out>
                        </div>
                  </div>  
                   </div>
                <div class="box-header with-border">
                <h3 class="box-title"><spring:message code="message.list.compinfoStdMergelist"/><spring:message code="message.listForm.faRenxinxi"/></h3>
                </div>  
                  <div class="box-body">
                  <div class="form-group form-group-xs">
                    	<label for="taxCode" class="col-sm-2 text-right"><spring:message code="message.listForm.shuiWuDengJiZhengHao"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-9 text-left">
                            <input class="form-control" id="taxCode" name="taxCode" value="<c:out value="${compInfo.taxCode}"></c:out>" placeholder="<spring:message code="message.listForm.shuiWuDengJiZhengHao"/>" type="hidden" maxlength="128"><c:out value="${compInfo.taxCode}"></c:out>
                        </div>
                    </div> 
                    <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label for="legalRepName" class="col-sm-2 text-right"><spring:message code="message.listForm.faRenXingMing"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="legalRepName" name="legalRepName" value="<c:out value="${compInfo.legalRepName}"></c:out>" placeholder="<spring:message code="message.listForm.faRenXingMing"/>" type="hidden" maxlength="10"><c:out value="${compInfo.legalRepName}"></c:out>
                        </div>
                        <label for="legalRepIdnum" class="col-sm-3 text-right"><spring:message code="message.listForm.faRenShengFenZheng"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="legalRepIdnum" name="legalRepIdnum" value="<c:out value="${compInfo.legalRepIdnum}"></c:out>" placeholder="<spring:message code="message.listForm.faRenShengFenZheng"/>" type="hidden" maxlength="20"><c:out value="${compInfo.legalRepIdnum}"></c:out>
                        </div>
                    </div>
                    <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label for="legalRepTelephone" class="col-sm-2 text-right"><spring:message code="message.listForm.faRenDianHua"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="legalRepTelephone" name="legalRepTelephone" value="<c:out value="${compInfo.legalRepTelephone}"></c:out>" placeholder="<spring:message code="message.listForm.faRenDianHua"/>" type="hidden" maxlength="15"><c:out value="${compInfo.legalRepTelephone}"></c:out>
                        </div>
                        <label for="legalRepHandphone" class="col-sm-3 text-right"><spring:message code="message.listForm.faRenShouJi"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="legalRepHandphone" name="legalRepHandphone" value="<c:out value="${compInfo.legalRepHandphone}"></c:out>" placeholder="<spring:message code="message.listForm.faRenShouJi"/>" type="hidden" maxlength="15"><c:out value="${compInfo.legalRepHandphone}"></c:out>
                        </div>
                    </div>
                    <div class="line"></div>
                     <div class="form-group form-group-xs">
                        <label for="legalRepCertCode" class="col-sm-2 text-right"><spring:message code="message.listForm.yingYeZhiZhaoHao"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="legalRepCertCode" name="legalRepCertCode" value="<c:out value="${compInfo.legalRepCertCode}"></c:out>" placeholder="<spring:message code="message.listForm.qiYeFaRenYingYeZhiZhaoHao"/>" type="hidden" maxlength="128"><c:out value="${compInfo.legalRepCertCode}"></c:out>
                        </div>
                        <label for="legalRepExpireDate" class="col-sm-3 text-right"><spring:message code="message.listForm.qiYeFaRenYingYeZhiZhaoYouXiaoQi"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                         <input class="form-control" type="hidden" readonly="readonly" id="legalRepExpireDate"  name="legalRepExpireDate" value="<c:out value="${compInfo.legalRepExpireDateStr}"></c:out>" placeholder="<spring:message code="message.listForm.XuKeZheng"/><spring:message code="message.listForm.youXiaoQiStart"/>"   
             onFocus="WdatePicker({minDate:'#F{$dp.$D(\'legalRepExpendDate\')}'})"  ><c:out value="${compInfo.legalRepExpireDateStr}"></c:out> <spring:message code="message.listForm.zhi"/> <input class="form-control" type="hidden" readonly="readonly" id="legalRepExpendDate"  name="legalRepExpendDate" value="<c:out value="${compInfo.legalRepExpendDateStr}"></c:out>" placeholder="<spring:message code="message.listForm.XuKeZheng"/><spring:message code="message.listForm.youXiaoQiEnd"/>"   
             onFocus="WdatePicker({minDate:'#F{$dp.$D(\'legalRepExpireDate\')}'})"  ><c:out value="${compInfo.legalRepExpendDateStr}"></c:out>
                        </div>
                    </div>
                   </div> 
  
                <div class="box-header with-border">
                <h3 class="box-title"><spring:message code="message.listForm.liangXiRenxinxi"/></h3>
                </div> 
                <div class="box-body">
                    <div class="form-group form-group-xs">
                        <label for="contactName" class="col-sm-2 text-right"><spring:message code="message.listForm.liangXiRenXingMing"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="contactName" name="contactName" value="<c:out value="${compInfo.contactName}"></c:out>" placeholder="<spring:message code="message.listForm.liangXiRenXingMing"/>" type="hidden" maxlength="10"><c:out value="${compInfo.contactName}"></c:out>
                        </div>
                        <label for="contactIdnum" class="col-sm-3 text-right"><spring:message code="message.listForm.liangXiRenShengFenZheng"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="contactIdnum" name="contactIdnum" value="<c:out value="${compInfo.contactIdnum}"></c:out>" placeholder="<spring:message code="message.listForm.liangXiRenShengFenZheng"/>" type="hidden" maxlength="20"><c:out value="${compInfo.contactIdnum}"></c:out>
                        </div>
                    </div>
                    <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label for="contactPos" class="col-sm-2 text-right"><spring:message code="message.listForm.liangXiRenZhiWu"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="contactPos" name="contactPos" value="<c:out value="${compInfo.contactPos}"></c:out>" placeholder="<spring:message code="message.listForm.liangXiRenZhiWu"/>" type="hidden" maxlength="32"><c:out value="${compInfo.contactPos}"></c:out>
                        </div>
                        <label for="contactTelephone" class="col-sm-3 text-right"><spring:message code="message.listForm.liangXiRenDianHua"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="contactTelephone" name="contactTelephone" value="<c:out value="${compInfo.contactTelephone}"></c:out>" placeholder="<spring:message code="message.listForm.liangXiRenDianHua"/>" type="hidden" maxlength="20"><c:out value="${compInfo.contactTelephone}"></c:out>
                        </div>
                    </div>
                    <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label for="contactHandphone" class="col-sm-2 text-right"><spring:message code="message.listForm.liangXiRenShouJi"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="contactHandphone" name="contactHandphone" value="<c:out value="${compInfo.contactHandphone}"></c:out>" placeholder="<spring:message code="message.listForm.liangXiRenShouJi"/>" type="hidden" maxlength="20"><c:out value="${compInfo.contactHandphone}"></c:out>
                        </div>
                        <label for="contactEmail" class="col-sm-3 text-right"><spring:message code="message.listForm.liangXiRenYouXiang"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="contactEmail" name="contactEmail" value="<c:out value="${compInfo.contactEmail}"></c:out>" placeholder="<spring:message code="message.listForm.liangXiRenYouXiang"/>" type="hidden" maxlength="20"><c:out value="${compInfo.contactEmail}"></c:out>
                        </div>
                    </div>
                    <div class="line"></div>
                    <div class="form-group form-group-xs">
                        <label for="contactQQ" class="col-sm-2 text-right"><spring:message code="message.listForm.liangXiRenQQ"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-3 text-left">
                            <input class="form-control" id="contactQQ" name="contactQQ" value="<c:out value="${compInfo.contactQQ}"></c:out>" placeholder="<spring:message code="message.listForm.liangXiRenQQ"/>" type="hidden" maxlength="20"><c:out value="${compInfo.contactQQ}"></c:out>
                        </div>
                        
                    </div>
                  
                  <div class="line"></div>
                    <div class="form-group form-group-xs">
                    <input type="hidden" class="form-control" id="auditStatus" name="auditStatus">
                        <label for="auditRemark" class="col-sm-2 control-label"><spring:message code="message.listForm.shenHeBeiZhu"/><spring:message code="message.yanZheng.maoHao"/></label>
                        <div class="col-sm-9">
                            <textarea class="form-control" id="auditRemark" name="auditRemark" rows="3" placeholder="<spring:message code="message.listForm.shenHeBeiZhu"/>" maxlength="500"></textarea>
                        </div>
                    </div>
                    </div> 

                
                <div class=" box-footer text-center">
                    <button type="button" class="btn btn-primary btn-sm" onclick="saveAuditUser(1);"><spring:message code="message.listForm.tongGuoSpacing"/></button>
                    <button type="button" class="btn btn-primary btn-sm" onclick="saveAuditUser(2);"><spring:message code="message.listForm.buTongGuo"/></button>
                    <a href="${ctx }/auditUser/toAuditCompList.html?compType=${compType}" class="btn btn-danger btn-sm"><spring:message code="message.button.getBackSpacing"/></a>
                </div>
             </form>   
          </div>         
    </section>
    
    <%@ include file="/WEB-INF/component/commonJS.jsp" %> 
    
    <script type="text/javascript">
    
    	//	保存角色信息
    	function saveAuditUser(status) {
    		$("#auditStatus").val(status);
    		/* if (!validate()) {
    			return;
    		} */
    		//	通过查询基础库是否存在
    		if ($("#auditStatus").val() == "1") {
    			$.post("checkCompExist.html", {
        			"compCode" : $.trim($("#compCode").val()),
        			"compName" : $.trim($("#compName").val())
        		}, function(result) {
        			if (result.success && result.rows) {
        				$.HN.message.confirm("<spring:message code="message.lable.compinfoStd"/><spring:message code="message.listForm.zhong"/><spring:message code="message.listForm.alreadyShow"/><spring:message code="message.listForm.alreadyShow"/>", "", "").on(function(bool) {
        					if (bool) {
        						submitSave();
        					}
        				});
        			} else {
        				submitSave();
        			}
        		}, "json").error(function(err) {
        			top.window.document.location = "${ctx}/login.html"; 
        		});
    		} else {	//	不通过
    			submitSave();
    		}
    	}
    	
    	//	提交保存
    	function submitSave() {
   			$("#form").ajaxSubmit({
       			dataType : "json",
       			timeout: 10000,
       			success : function(result, statusText) {
       				if (result.success) {
       						$.HN.message.alert("<spring:message code="message.HN.alert.baoCunCheng"/>", "", "success", function() {
           						document.location = "${ctx }/auditUser/toAuditCompList.html?compType=${compType}";
           					});
       				} else {
       					$.HN.message.alert(result.msg || "", "", "error");
       				}
       			}
       		});
    	}
    	
    	//	校验角色信息
    	/* function validate() {
    		var compCode = $.trim($("#compCode").val());
    		if (compCode == null || compCode == "") {
    			$.HN.message.alert("请输入企业编码！", "消息", "warn");
    			return false;
    		} else if (!/^[a-zA-Z0-9_]+$/.test(compCode)) {
    			$.HN.message.alert("企业构编码只能由字母数字下划线组成！", "消息", "warn");
    			return false;
    		}else if (compCode.length > 100 ) {
                $.HN.message.alert("企业编码超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		$("#compCode").val(compCode);

    		var compName = $.trim($("#compName").val());
    		if (compName == null || compName == "") {
    			$.HN.message.alert("请输入企业名称！", "消息", "warn");
    			return false;
    		}else if (compName.length > 512 ) {
                $.HN.message.alert("企业名称超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		$("#compName").val(compName);

    		var compShortName = $.trim($("#compShortName").val());
    		if (compShortName == null || compShortName == "") {
    			$.HN.message.alert("请输入企业简称！", "消息", "warn");
    			return false;
    		}else if (compShortName.length > 256 ) {
                $.HN.message.alert("企业简称超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		$("#compShortName").val(compShortName);

    		var orgCode = $.trim($("#orgCode").val());
    		if (orgCode == null || orgCode == "") {
    			$.HN.message.alert("请输入组织机构代码！", "消息", "warn");
    			return false;
    		} else if (!/^[a-zA-Z0-9_]+$/.test(orgCode)) {
    			$.HN.message.alert("组织机构代码只能由字母数字下划线组成！", "消息", "warn");
    			return;
    		}else if (orgCode.length > 20 ) {
                $.HN.message.alert("组织机构代码超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		$("#orgCode").val(orgCode);
    		
    		
    		var compRegId = $.trim($("#compRegId2").val());
    		if (compRegId == null || compRegId == "") {
    			$.HN.message.alert("请选择企业注册类型！", "消息", "warn");
    			return false;
    		}

    		var compPhone = $.trim($("#compPhone").val());
    		if (compPhone == null || compPhone == "") {
    			$.HN.message.alert("请输入企业电话！", "消息", "warn");
    			return false;
    		} else if (!/^(\d+[-]\d+)|(\d+)$/.test(compPhone)) {
    			$.HN.message.alert("请输入正确的企业电话！", "消息", "warn");
    			return false;
    		}else if (compPhone.length > 20 ) {
                $.HN.message.alert("企业电话超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		$("#compPhone").val(compPhone);
    		
    		var compAddress = $.trim($("#compAddress").val());
    		if (compAddress == null || compAddress == "") {
    			$.HN.message.alert("请输入企业地址！", "消息", "warn");
    			return false;
    		}else if (compAddress.length > 1024 ) {
                $.HN.message.alert("企业地址超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		$("#compAddress").val(compAddress);
    		
    		var regCap = $.trim($("#regCap").val());
    		if (regCap == null || regCap == "") {
    			$.HN.message.alert("请输入注册资本！", "消息", "warn");
    			return false;
    		} else if (isNaN(regCap)) {
    			$.HN.message.alert("你输入的注册资本不是一个数！", "消息", "warn");
    			return false;
    		}else if (regCap.length > 30 ) {
                $.HN.message.alert("注册资本超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		var index = regCap.lastIndexOf(".");
    		if (index > 0 && regCap.substr(index).length > 3) {
    			$.HN.message.alert("注册资本最多保留两位小数！", "消息", "warn");
    			return false;
    		}
    		$("#regCap").val(regCap);
    		
    		var bizScope = $.trim($("#bizScope").val());
    		if (bizScope == null || bizScope == "") {
    			$.HN.message.alert("请输入经营范围！", "消息", "warn");
    			return false;
    		}else if (bizScope.length > 4000 ) {
                $.HN.message.alert("经营范围超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		$("#bizScope").val(bizScope);

    		var legalRepName = $.trim($("#legalRepName").val());
    		if (legalRepName == null || legalRepName == "") {
    			$.HN.message.alert("请输入法人姓名！", "消息", "warn");
    			return false;
    		}else if (bizScope.length > 100 ) {
                $.HN.message.alert("法人姓名超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		$("#legalRepName").val(legalRepName);

    		var legalRepIdnum = $.trim($("#legalRepIdnum").val());
    		if (legalRepIdnum == null || legalRepIdnum == "") {
    			$.HN.message.alert("请输入法人身份证号！", "消息", "warn");
    			return false;
    		} else if (!/^\d+[a-zA-Z0-9]$/.test(legalRepIdnum)) {
    			$.HN.message.alert("请输入正确的身份证格式！", "消息", "warn");
    			return false;
    		}else if (bizScope.length > 36 ) {
                $.HN.message.alert("法人身份证号超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		$("#legalRepIdnum").val(legalRepIdnum);

    		var legalRepTelephone = $.trim($("#legalRepTelephone").val());
    		if (legalRepTelephone == null || legalRepTelephone == "") {
    			$.HN.message.alert("请输入法人电话！", "消息", "warn");
    			return false;
    		} else if (!/^(\d+[-]\d+)|(\d+)$/.test(legalRepTelephone)) {
    			$.HN.message.alert("请输入正确的法人电话！", "消息", "warn");
    			return false;
    		}else if (bizScope.length > 20 ) {
                $.HN.message.alert("法人电话超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		$("#legalRepTelephone").val(legalRepTelephone);

    		var legalRepHandphone = $.trim($("#legalRepHandphone").val());
    		if (legalRepHandphone == null || legalRepHandphone == "") {
    			$.HN.message.alert("请输入法人手机号！", "消息", "warn");
    			return false;
    		} else if (!/^(\d+[-]\d+)|(\d+)$/.test(legalRepHandphone)) {
    			$.HN.message.alert("请输入正确的法人手机号！", "消息", "warn");
    			return false;
    		}else if (legalRepHandphone.length > 20 ) {
                $.HN.message.alert("法人手机号超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		$("#legalRepHandphone").val(legalRepHandphone);

    		var contactName = $.trim($("#contactName").val());
    		if (contactName == null || contactName == "") {
    			$.HN.message.alert("请输入联系人姓名！", "消息", "warn");
    			return false;
    		}else if (contactName.length > 20 ) {
                $.HN.message.alert("联系人超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		$("#contactName").val(contactName);

    		var contactIdnum = $.trim($("#contactIdnum").val());
    		if (contactIdnum == null || contactIdnum == "") {
    			$.HN.message.alert("请输入联系人身份证号！", "消息", "warn");
    			return false;
    		} else if (!/^\d+[a-zA-Z0-9]$/.test(contactIdnum)) {
    			$.HN.message.alert("联系人身份证号只能由字母数字组成且必须以数字开头！", "消息", "warn");
    			return false;
    		}else if (contactIdnum.length > 20 ) {
                $.HN.message.alert("联系人身份证号超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		$("#contactIdnum").val(contactIdnum);

    		var contactPos = $.trim($("#contactPos").val());
    		if (contactPos == null || contactPos == "") {
    			$.HN.message.alert("请输入联系人职务！", "消息", "warn");
    			return false;
    		}else if (contactPos.length > 64 ) {
                $.HN.message.alert("联系人职务超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		$("#contactPos").val(contactPos);

    		var contactTelephone = $.trim($("#contactTelephone").val());
    		if (contactTelephone == null || contactTelephone == "") {
    			$.HN.message.alert("请输入联系人电话！", "消息", "warn");
    			return false;
    		} else if (!/^(\d+[-]\d+)|(\d+)$/.test(contactTelephone)) {
    			$.HN.message.alert("请输入正确的联系人电话！", "消息", "warn");
    			return false;
    		}else if (contactTelephone.length > 20 ) {
                $.HN.message.alert("联系人电话超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		$("#contactTelephone").val(contactTelephone);

    		var contactHandphone = $.trim($("#contactHandphone").val());
    		if (contactHandphone == null || contactHandphone == "") {
    			$.HN.message.alert("请输入联系人手机号！", "消息", "warn");
    			return false;
    		} else if (!/^(\d+[-]\d+)|(\d+)$/.test(contactHandphone)) {
    			$.HN.message.alert("请输入正确的联系人手机号！", "消息", "warn");
    			return false;
    		}else if (contactHandphone.length > 20 ) {
                $.HN.message.alert("联系人手机号超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		$("#contactHandphone").val(contactHandphone);

    		var contactEmail = $.trim($("#contactEmail").val());
    		if (contactEmail == null || contactEmail == "") {
    			$.HN.message.alert("请输入联系人邮箱！", "消息", "warn");
    			return false;
    		} else if (!/^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/.test(contactEmail)) {
    			$.HN.message.alert("电子邮箱格式不正确！", "消息", "warn");
    			return false;
    		}else if (contactEmail.length > 20 ) {
                $.HN.message.alert("电子邮箱超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		$("#contactEmail").val(contactEmail);
    		
    		var contactQQ = $.trim($("#contactQQ").val());
    		if (contactQQ != null && contactQQ != "") {
    			if (!/^\d+[a-zA-Z0-9]$/.test(contactQQ)) {
        			$.HN.message.alert("联系人QQ号只能由数字组成！", "消息", "warn");
        			return false;
    			}
    		}
    		$("#contactQQ").val(contactQQ);

    		var bizLiceNo = $.trim($("#bizLiceNo").val());
    		if (bizLiceNo == null || bizLiceNo == "") {
    			$.HN.message.alert("请输入营业执照编号！", "消息", "warn");
    			return false;
    		} else if (!/^[a-zA-Z0-9_]+$/.test(bizLiceNo)) {
    			$.HN.message.alert("营业执照编号只能由字母数字下划线组成！", "消息", "warn");
    			return false;
    		}else if (bizLiceNo.length > 100 ) {
                $.HN.message.alert("营业执照编号超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		$("#bizLiceNo").val(bizLiceNo);

    		var bizLiceStartDate = $.trim($("#bizLiceStartDate").val());
    		if (bizLiceStartDate == null || bizLiceStartDate == "") {
    			$.HN.message.alert("请选择营业执照有效期开始时间！", "消息", "warn");
    			return false;
    		}

    		var bizLiceEndDate = $.trim($("#bizLiceEndDate").val());
    		if (bizLiceEndDate == null || bizLiceEndDate == "") {
    			$.HN.message.alert("请选择营业执照有效期结束时间！", "消息", "warn");
    			return false;
    		}

    		var taxCode = $.trim($("#taxCode").val());
    		if (taxCode == null || taxCode == "") {
    			$.HN.message.alert("请输入税务登记号！", "消息", "warn");
    			return false;
    		} else if (!/^[a-zA-Z0-9_]+$/.test(taxCode)) {
    			$.HN.message.alert("税务登记号只能由字母数字下划线组成！", "消息", "warn");
    			return false;
    		}else if (taxCode.length > 100 ) {
                $.HN.message.alert("税务登记号超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		$("#taxCode").val(taxCode);indusCode
    		
    		var indusCode = $.trim($("#indusCode").val());
            if (indusCode == null || indusCode == "") {
                $.HN.message.alert("请输入生产/经营许可证编号！", "消息", "warn");
                return false;
            } else if (!/^[a-zA-Z0-9_]+$/.test(indusCode)) {
                $.HN.message.alert("生产/经营许可证编号只能由字母数字下划线组成！", "消息", "warn");
                return false;
            }else if (indusCode.length > 100 ) {
                $.HN.message.alert("生产/经营许可证编号超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
            $("#indusCode").val(indusCode);

    		var area3 = $.trim($("#area3").val());
    		if (area3 == null || area3 == "") {
    			$.HN.message.alert("请选择地区！", "消息", "warn");
    			return false;
    		}

    		var indusCodeStartDate = $.trim($("#indusCodeStartDate").val());
    		if (indusCodeStartDate == null || indusCodeStartDate == "") {
    			$.HN.message.alert("请选择生产/经营许可证有效期开始时间！", "消息", "warn");
    			return false;
    		}

    		var indusCodeEndDate = $.trim($("#indusCodeEndDate").val());
    		if (indusCodeEndDate == null || indusCodeEndDate == "") {
    			$.HN.message.alert("请选择生产/经营许可证有效期结束时间！", "消息", "warn");
    			return false;
    		}
    		
    		var legalRepCertCode = $.trim($("#legalRepCertCode").val());
    		if (legalRepCertCode == null || legalRepCertCode == "") {
    			$.HN.message.alert("请输入企业法人营业执照号！", "消息", "warn");
    			return false;
    		} else if (!/^[a-zA-Z0-9_]+$/.test(legalRepCertCode)) {
    			$.HN.message.alert("企业法人营业执照号只能由字母数字下划线组成！", "消息", "warn");
    			return false;
    		}else if (legalRepCertCode.length > 100 ) {
                $.HN.message.alert("企业法人营业执照号超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
    		$("#legalRepCertCode").val(legalRepCertCode);
    		
    		var legalRepExpireDate = $.trim($("#legalRepExpireDate").val());
    		if (legalRepExpireDate == null || legalRepExpireDate == "") {
    			$.HN.message.alert("请选择企业法人营业执照号有效期始！", "消息", "warn");
    			return false;
    		}
    		
    		
            var compProfile = $.trim($("#compProfile").val());
            if (compProfile != null && compProfile == "" && compProfile.length > 4000 ) {
                $.HN.message.alert("企业简介超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
            $("#compProfile").val(compProfile);
    		
    		var auditStatus = $.trim($("#auditStatus").val());
    		if (auditStatus == null || auditStatus == "") {
    			$.HN.message.alert("请选择审核状态！", "消息", "warn");
    			return false;
    		}
    		
    		var auditRemark = $.trim($("#auditRemark").val());
            if (auditRemark != null && auditRemark == "" && auditRemark.length > 4000 ) {
                $.HN.message.alert("审核备注超过限制字数！请重新输入", "消息", "warn");
                return false;
            }
            $("#auditRemark").val(auditRemark);
            
    		return true;
    	} */
    
    	$(document).ready(function() {
    		
    		/* $("#area1").HNSelect({
                url: "${ctx}/selectController/getArea.html", 
                data: { ID: '000000' }, 
                defaultText: "<option value=''>请选择</option>",
                defaultselect: "${ compInfo.area.father.father.areaid  }",
                func: function () {
                    $("#area2").HNSelect({
                        parent_selector: "#area1", 
                        url: "${ctx}/selectController/getArea.html", 
                        dataid: "ID", 
                        defaultText: "<option value=''>请选择</option>",
                        defaultselect: "${ compInfo.area.father.areaid  }",
                        func: function () {
                            $("#area3").HNSelect({
                                parent_selector: "#area2", 
                                url: "${ctx}/selectController/getArea.html", 
                                dataid: "ID", 
                                defaultText: "<option value=''>请选择</option>",
                                defaultselect: "${ compInfo.area.areaid  }"
                            });
                        }
                    });
                }
            }); */
    		
    		/* $("#compGroupName").HNSelect({
                url: "${ctx}/selectController/getStdCompGroup.html", 
                data: { ID: '000000' }, 
                defaultText: "<option value=''>请选择</option>",
                defaultselect: "${ compInfo.compGroupName.compGroupId  }",
            });  */
    		
    		/* $("#compRegId").HNSelect({
	            url: "${ctx}/selectController/getDicCompType.html", 
	            data: {compRegId:""},  
	            defaultText: "<option value=''>请选择</option>",
	            defaultselect: "${fatherCompRegType.compRegId}",
	            func: function () {
	                $("#compRegId2").HNSelect({
	                    parent_selector: "#compRegId", 
	                    url: "${ctx}/selectController/getDicCompType.html", 
	                    dataid: "compRegId",
	                    defaultText: "<option value=''>请选择</option>",
	                    defaultselect: "${compInfo.compReg.compRegId}"
	                });
	            }
	        }); */
    		
    		$("#bizLiceStartDate,#bizLiceEndDate,#indusCodeStartDate,#indusCodeEndDate,#legalRepExpireDate").daterangepicker({
                //timePicker: true,
                format: 'YYYY-MM-DD',
                //timePickerIncrement: 1,
                //timePicker12Hour: false,
                //timePickerSeconds: true,
                singleDatePicker: true
            });
    		
    	});
    </script>
    
</body>
</html>
